<!DOCTYPE html>
<html lang="zh">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>天嘉智慧云</title>
    <#include "/headerTj.html">

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

        <script src="https://webapi.amap.com/maps?v=1.4.10&key=e2c1072f236fc202fc9b6815d4484743&plugin=AMap.GraspRoad"></script>
        <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
        <link rel="stylesheet" href="${request.contextPath}/statics/plugins/datepickerZip/css/datepicker.css">
        <style>
            #container {
                height: 800px;
                width: 100%;
            }

            .progress {
                margin-bottom: 0px;
            }

            .panel-body-nopad {
                padding: 0px;

            }

            .subs {
                background: #fff;
                border: 0;
            }

            .btn-group-justified > .btn.focus, .btn:focus, .btn:hover {
                color: white;
                text-decoration: none;
            }

            .btn-default:hover {
                color: #fff;
                background-color: #5AA7f3;
                border-color: #fff;
            }
             .c-datepicker-date-editor {
                 border:none;
                 background-color: #5bc0de;
             }
        </style>
        </head>

<body>
<div class="container-fluid nolrpad" style="padding:0 0.5%;">
    <div class="row">
        <div class="col-lg-10">
            <ul id="myTab" class="nav nav-pills nav-lb">
                <li class="nobtnli"><a href="#opt" data-toggle="tab" > 作业轨迹</a></li>
                <li class="nobtnli" style="float: right; margin-top: 3px;margin-right:3px;border: none;">
                    <div class="c-datepicker-date-editor J-datepicker-range-between30 mt10" style="color:white;">
                        <i class="c-datepicker-range__icon kxiconfont icon-clock"></i>
                        <input placeholder="开始时间"  class="c-datepicker-data-input" style="color:white;background-color:transparent;" id="startTime">
                        <span class="c-datepicker-range-separator">-</span>
                        <input placeholder="结束时间"  class="c-datepicker-data-input" style="color:white;background-color:transparent;" id="endTime">
                    </div>
                </li>
            </ul>
            <div class="panel panel-default" style="padding-top:0;">
                <div class="panel-body nopaddingtop" style="padding:0;">
                    <div id="container"></div>
                </div>
            </div>
        </div>
        <div class="col-lg-2" id="tab">
            <div class="btn-group btn-group-justified" role="group" style="margin-top:0px;">
                <a type="button" class="btn btn-default btn-in-head "><span style="float: left;"><i
                        class="fa fa-step-forward"></i></span>在线车辆</a>
            </div>
            <ul class="nav nav-tabs">
                <div class="btn-group btn-group-justified btn-group-sub">
                    <a href="#totalcar" type="button" data-toggle="tab" class="btn btn-in-head rectangle-top "
                       style="width:50%;" id="myTabbtn">全 部 </a>
                    <a href="#regioncar" type="button" data-toggle="tab" class="btn btn-in-head " style="width:50%;"
                       id="myTabbtn2">区 域</a>
                </div>
            </ul>
            <div id="rightpanel" class="tab-content">
                <div class="tab-pane fade in active" id="totalcar">
                    <div class="input-group custom-search-form">
                        <input type="text" class="form-control" placeholder="搜索...">
                        <span class="input-group-btn"><button class="btn btn-default" type="button"><i
                                class="fa fa-search"></i></button></span>
                    </div>
                    <ul class="nav navasp">
                        <li v-for="item in areaList.carList">
                            <a data-toggle="collapse" :href="'#setNavcar'+item.imei"  @click="show(item.imei)">
                                <p>
                                    <i class="fa fa-plus" aria-hidden="true"></i>{{item.plateNum}}
                                </p>
                            </a>
                            <div class="collapse" :id="'setNavcar'+item.imei">
                                <ul class="nav lnav navinnav">
                                    <li><a href="#"><i class="fa fa-camera"></i> 扬尘观察</a></li>
                                    <li><a href="#"><i class="fa fa-camera"></i> 车前观察</a></li>
                                    <li><a href="#"><i class="fa fa-camera"></i> 车后观察</a></li>
                                    <li><a href="#"><i class="fa fa-camera"></i> 车内观察</a></li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="tab-pane fade" id="regioncar">
                    <div class="input-group custom-search-form">
                        <input type="text" class="form-control" placeholder="搜索...">
                        <span class="input-group-btn"><button class="btn btn-default" type="button"><i class="fa fa-search"></i></button></span>
                    </div>
                    <ul class="nav navasp">
                        <li  v-for="item in areaList.areaList">
                            <a data-toggle="collapse"  :href="'#setNavreg'+item.pid">
                                <p>
                                    <i class="fa fa-minus" aria-hidden="true" ></i>{{item.projectName}}
                                </p>
                            </a>
                            <div class="collapse"   :id="'setNavreg'+item.pid">
                                <ul class="nav lnav navinnav">
                                    <li v-for="it in areaList.carList">
                                        <a data-toggle="collapse" :href="'#setNavregCar'+item.pid" @click="show(it.imei)">
                                            <p>
                                                <i class="fa fa-minus" aria-hidden="true" ></i>{{it.plateNum}}</p>
                                        </a>
                                        <div class="collapse" :id="'setNavregCar1'+item.pid">
                                            <ul class="nav lnav navinnav">
                                                <li><a href="#"><i class="fa fa-camera"></i> 扬尘观察</a></li>
                                                <li><a href="#"><i class="fa fa-camera"></i> 车前观察</a></li>
                                                <li><a href="#"><i class="fa fa-camera"></i> 车后观察</a></li>
                                                <li><a href="#"><i class="fa fa-camera"></i> 车内观察</a></li>
                                            </ul>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </li>
<!--                        <li>
                            <a data-toggle="collapse" href="#setNavreg000">
                                <p>
                                    <i class="fa fa-plus" aria-hidden="true"></i>未指定区域
                                </p>
                            </a>
                            <div class="collapse" v-for="item in areaList.carList" :id="'setNavreg'+item.imei">
                                <ul class="nav lnav navinnav">
                                    <li><a data-toggle="collapse" :href="'#setNavreg000'+item.imei"><p>
                                        <i class="fa fa-plus" aria-hidden="true"></i>{{item.plateNum}}</p></a></li>
                                    <div class="collapse" :id="'#setNavreg000'+item.imei">
                                        <ul class="nav lnav navinnav">
                                            <li><a href="#"><i class="fa fa-camera"></i> 扬尘观察</a></li>
                                            <li><a href="#"><i class="fa fa-camera"></i> 车前观察</a></li>
                                            <li><a href="#"><i class="fa fa-camera"></i> 车后观察</a></li>
                                            <li><a href="#"><i class="fa fa-camera"></i> 车内观察</a></li>
                                        </ul>
                                    </div>
                                </ul>
                            </div>
                        </li>-->
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${request.contextPath}/statics/js/modules/xinpai/car_manage.js?_${.now?long}"></script>
<script>
    $(function(){
        var DATAPICKERAPI = {
            // 默认input显示当前月,自己获取后填充
            activeMonthRange: function () {
                return {
                    begin: moment().set({ 'date': 1, 'hour': 0, 'minute': 0, 'second': 0 }).format('YYYY-MM-DD HH:mm:ss'),
                    end: moment().set({ 'hour': 23, 'minute': 59, 'second': 59 }).format('YYYY-MM-DD HH:mm:ss')
                }
            },
            shortcutMonth: function () {
                // 当月
                var nowDay = moment().get('date');
                var prevMonthFirstDay = moment().subtract(1, 'months').set({ 'date': 1 });
                var prevMonthDay = moment().diff(prevMonthFirstDay, 'days');
                return {
                    now: '-' + nowDay + ',0',
                    prev: '-' + prevMonthDay + ',-' + nowDay
                }
            },
            // 注意为函数：快捷选项option:只能同一个月份内的
            rangeMonthShortcutOption1: function () {
                var result = DATAPICKERAPI.shortcutMonth();
                return [{
                    name: '昨天',
                    day: '-1,-1',
                    time: '00:00:00,23:59:59'
                }, {
                    name: '这一月',
                    day: result.now,
                    time: '00:00:00,'
                }, {
                    name: '上一月',
                    day: result.prev,
                    time: '00:00:00,23:59:59'
                }];
            },
            // 快捷选项option
            rangeShortcutOption1: [{
                name: '最近一周',
                day: '-7,0'
            }, {
                name: '最近一个月',
                day: '-30,0'
            }, {
                name: '最近三个月',
                day: '-90, 0'
            }],
            singleShortcutOptions1: [{
                name: '今天',
                day: '0'
            }, {
                name: '昨天',
                day: '-1',
                time: '00:00:00'
            }, {
                name: '一周前',
                day: '-7'
            }]
        };
        //十分秒年月日范围，限制开始结束相隔天数小于30天
        var da=new Date();
        da.setHours(23);
        da.setMinutes(59);
        da.setSeconds(59);
        $('.J-datepicker-range-between30').datePicker({
            isRange: true,
            between: 30,
            max:moment(da).format('YYYY-MM-DD HH:mm:ss'),
        });
    });
</script>
</body>
</html>
